import request from "@/utils/request";

//角色列表
export function list(query) {
    return request({
        url: '/admin/auth/role/list',
        method: 'post',
        data: query
    })
}

//添加角色
export function add(query) {
    return request({
        url: '/admin/auth/role/add',
        method: 'post',
        data: query
    })
}

//删除角色
export function del(query) {
    return request({
        url: '/admin/auth/role/del',
        method: 'post',
        data: query
    })
}

//编辑角色
export function edit(query) {
    return request({
        url: '/admin/auth/role/edit',
        method: 'post',
        data: query
    })
}

//获取所有角色
export function getAll(query) {
    return request({
        url: '/admin/auth/role/getAll',
        method: 'post',
        data: query
    })
}